import styles from './index.module.less';
import { Outlet } from 'react-router';
import Menu from './Menu';
import type { FC } from 'react';
import withAuthGuard from '@/components/HOC/with-auth-guard';

interface IProps {
  name?: string;
}

const Admin: FC<IProps> = withAuthGuard(({}) => (
  <div className={styles['box-admin']}>
    <Outlet />
    <Menu />
  </div>
));
Admin.displayName = 'Admin';

export default Admin;
